# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-libfvde-python
_pkgname=libfvde
pkgver=20240502
pkgrel=3
pkgdesc='Library and tools to access FileVault Drive Encryption (FVDE) encrypted volumes.'
url='https://pypi.org/project/libfvde-python/#files'
arch=('x86_64' 'aarch64')
license=('LGPL3')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('40d128834b188751e54a0bf63af149ba12b71137968527303d2ec096ab76c45771c8afccc8f536a12674e3983ecec3be15c0e4765ff31a71ec454e72b58e95b3')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

